import { EConfigItemPropsType, EDoneJsonType, IConfigItem } from '@/config-center/types';

export const custom_svg_gzleft: IConfigItem = {
  name: 'custom-svg-gzleft',
  title: '柜子（左）',
  tag: 'custom-svg-gzleft',
  type: EDoneJsonType.CustomSvg,
  display: true,
  config: {
    can_zoom: true,
    have_anchor: false,
    actual_rect: true
  },
  props: {
    cabinetType: {
      title: '机柜类型',
      type: EConfigItemPropsType.Select,
      val: '1',
      options: [
        {
          value: '0',
          label: '无'
        },
        {
          value: '1',
          label: '左侧'
        },
        {
          value: '2',
          label: '右侧'
        },
        {
          value: '3',
          label: '双侧'
        }
      ]
    },
    imeasureType: {
      title: '测量类型',
      type: EConfigItemPropsType.Select,
      val: '1',
      options: [
        {
          value: '0',
          label: '无'
        },
        {
          value: '1',
          label: '左侧温度计'
        },
        {
          value: '2',
          label: '右侧温度计'
        },
        {
          value: '3',
          label: '左侧温湿度计'
        },
        {
          value: '4',
          label: '右侧温湿度计'
        }
      ]
    },
    text: {
      title: '机柜名称',
      type: EConfigItemPropsType.Input,
      val: 'A01'
    },
    fontFamily: {
      title: '字体',
      type: EConfigItemPropsType.Select,
      val: 'Microsoft YaHei',
      options: [
        {
          value: 'Microsoft YaHei',
          label: '微软雅黑'
        },
        {
          value: 'NSimSun',
          label: '新宋体'
        }
      ]
    },
    fontSize: {
      title: '文字大小',
      type: EConfigItemPropsType.InputNumber,
      val: 10
    },
    fill: {
      title: '文字颜色',
      type: EConfigItemPropsType.Color,
      val: '#f0fffd'
    }
  },
  common_animations: {
    val: '',
    delay: 'delay-0s',
    speed: 'slow',
    repeat: 'infinite'
  }
};
